34 lines
501 B
Text
34 lines
501 B
Text
=== tests/cases/compiler/strictModeUseContextualKeyword.ts ===
|
|
"use strict"
|
|
>"use strict" : string
|
|
|
|
var as = 0;
|
|
>as : number
|
|
>0 : number
|
|
|
|
function foo(as: string) { }
|
|
>foo : (as: string) => void
|
|
>as : string
|
|
|
|
class C {
|
|
>C : C
|
|
|
|
public as() { }
|
|
>as : () => void
|
|
}
|
|
function F() {
|
|
>F : () => void
|
|
|
|
function as() { }
|
|
>as : () => void
|
|
}
|
|
function H() {
|
|
>H : () => void
|
|
|
|
let {as} = { as: 1 };
|
|
>as : number
|
|
>{ as: 1 } : { as: number; }
|
|
>as : number
|
|
>1 : number
|
|
}
|
|
|