-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
Hi,
I installed 2.0.2 Beta to test out a bug fix. Then I uninstalled it and reverted to TS 2.0 Beta.
However, something has changed in spite of my reverting to the earlier version (which didn't have this problem). I'm now getting a warning line printed for those errors that have related information. Here is an example:
TypeScript Version: 2.0 RC/ VS 2105 Update 3
Code
// A *self-contained* demonstration of the problem follows...
interface Foo {
bar: string;
}
interface Bar {
foo: number;
}
let f: Foo;
let b: Bar;
// error TS2339: Build:Property 'xyz' does not exist on type 'Foo'
f.xyz;
// error TS2322: Build: Type 'Bar' is not assignable to type 'Foo'.
// C:\Program Files (x86) \MSBuild\Microsoft\VisualStudio\v14.0\TypeScript\Microsoft.TypeScript.targets(252, 5): warning: Unknown output: Property 'bar' is missing in type 'Bar'.
f = b;Expected behavior:
Only the error should be printed for the second case f = b.
Actual behavior:
Both the error and a warning are printed to the output.
I hope this was not thought up as a feature, because I find it terribly distracting. The output is a mess of warnings and errors.
Thanks!
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue