-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #221: improve diagnostics when dereference fails
In some cases, when a type could not be referenced, the diagnostic message doesn't indicate that (the undefined return value will still cause an error, but we also want to know that we couldn't deref the type)
- Loading branch information
Elad Ben-Israel
committed
Sep 12, 2018
1 parent
e80a889
commit fc805f9
Showing
2 changed files
with
31 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
///!MATCH_ERROR: Unable to resolve referenced type 'Base'. Missing export? | ||
///!MATCH_ERROR: Base type of jsii.Derived is not a class or cannot be dereferenced (Base) | ||
|
||
class Base { | ||
|
||
} | ||
|
||
export class Derived extends Base { | ||
|
||
} |