New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile errors in the editor #16819
Labels
Comments
jrieken
added
important
Issue identified as high-priority
typescript
Typescript support issues
labels
Dec 7, 2016
This is the condensed version of export abstract class Marker {
static toString(markers: Marker[]): string {
return '';
}
}
export class Placeholder extends Marker {
constructor(public name: string = '', public defaultValue: Marker[]) {
super();
}
}
function foo(marker: Marker) {
if (marker instanceof Placeholder) {
console.log(marker.name);
console.log(marker.defaultValue);
}
}
foo(null); |
Thanks for drilling into this. I might push a change to rename my method... |
This was referenced Dec 7, 2016
Opened two more issues against TS to track other issue we are seeing when compiling VSCode with 2.1.4:
I'm going to submit quick workarounds fixes to our code for those two problems. They just require additional casts |
Fixed those two errors with #16861 |
kieferrm
added a commit
that referenced
this issue
Dec 8, 2016
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Since today (Insiders-1.8.0 0d65ced) I see compile errors in the editor that don't show up when running
gulp watch
. Unsure if this is new TypeScript behaviour or bugs? Samples areThe text was updated successfully, but these errors were encountered: