Skip to content

Loss of backward compatibility when upgrading to version 2.0.3 (I think) #11139

@cawa-93

Description

@cawa-93

TypeScript Version: 2.0.3

Expected behavior:
I expected that the upgrade from version 2.0.2 to version 2.0.3 should not cause problems as backward compatibility should be maintained. I expected that my code that compiles without errors in version 2.0.2 will be as error-free kompilirovatsya to version 2.0.3.

Actual behavior:
In version 2.0.2 the compilation succeeds. With version 2.0.3 get three errors:

ERROR in ../components/dialogs-page/Dialog.class.ts
(7,14): error TS2420: Class 'Dialog' incorrectly implements interface 'IDialog'.
  Types of property 'type' are incompatible.
    Type 'DialogType' is not assignable to type 'DialogType'.

ERROR in ./Background/BgClass.ts
(84,7): error TS2365: Operator '===' cannot be applied to types 'AudioOptionStatus' and 'AudioOptionStatus'.

ERROR in ./Background/BgClass.ts
(86,7): error TS2365: Operator '===' cannot be applied to types 'AudioOptionStatus' and 'AudioOptionStatus'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Breaking ChangeWould introduce errors in existing code

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions