mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
424 B
TypeScript
19 lines
424 B
TypeScript
//// [tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorWithNew.ts] ////
|
|
|
|
//// [exponentiationOperatorWithNew.ts]
|
|
var a: any;
|
|
var b: any;
|
|
var c: any;
|
|
new a ** b ** c;
|
|
new a ** new b ** c;
|
|
new (a ** b ** c);
|
|
|
|
//// [exponentiationOperatorWithNew.js]
|
|
"use strict";
|
|
var a;
|
|
var b;
|
|
var c;
|
|
Math.pow(new a, Math.pow(b, c));
|
|
Math.pow(new a, Math.pow(new b, c));
|
|
new (Math.pow(a, Math.pow(b, c)));
|