Skip to content

Commit

Permalink
Update test expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
popham committed May 28, 2016
1 parent db81278 commit 8289902
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
8 changes: 7 additions & 1 deletion tests/class_type/class_type.exp
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
test2.js:35
35: static gn(): Class<Y> { //NG
^ Y. This type is incompatible with
29: static gn(): Class<this> {
^^^^ some incompatible instantiation of `this`

Found 0 errors

Found 1 error
28 changes: 26 additions & 2 deletions tests/interface/interface.exp
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,29 @@ test3.js:6
6: (k.y: number); // error: y is string in I
^^^^^^ number


Found 19 errors
test4.js:8
8: var p: A & I = a; // NG
^ property `fn` of I. Property not found in
8: var p: A & I = a; // NG
^ A

test4.js:8
8: var p: A & I = a; // NG
^ property `gn` of statics of I. Property not found in
8: var p: A & I = a; // NG
^ statics of A

test4.js:9
9: var P: Class<A> & Class<I> = A; // NG
^ property `gn` of statics of I. Property not found in
6: class A {}
^ statics of A

test4.js:9
9: var P: Class<A> & Class<I> = A; // NG
^ property `fn` of I. Property not found in
9: var P: Class<A> & Class<I> = A; // NG
^ A


Found 23 errors

0 comments on commit 8289902

Please sign in to comment.