Merge branch 'master' into fixCircularReturnType

# Conflicts:
#	src/compiler/diagnosticMessages.json
This commit is contained in:
Anders Hejlsberg
2018-08-06 10:53:20 -07:00
22 changed files with 217 additions and 57 deletions

View File

@@ -0,0 +1,15 @@
// @strict: true
// @target: ES5
class A {
public static x: number = 1;
public static y: number = 1;
private static _b: number = 2;
}
const a = new A();
a['y'] // Error
a.y // Error
A._b // Error
A.a

View File

@@ -1,5 +1,4 @@
/// <reference path='fourslash.ts' />
// @allowJs: true
// @checkJs: true
@@ -15,7 +14,6 @@
// @Filename: f1.ts
//// export class C {[|
//// |]x: number;
//// static y: string;
//// }
verify.getAndApplyCodeFix(/*errorCode*/undefined, 0);