Make change signature fix non-applicable for constructors (EA-76554)

This commit is contained in:
Nikolay Krasko
2016-01-26 19:09:52 +03:00
parent 8331442661
commit 7c8a5b0b83
3 changed files with 18 additions and 1 deletions
@@ -0,0 +1,9 @@
// "Change 'A' function return type to 'B'" "false"
// ACTION: Change 'b' type to 'A'
// ACTION: Convert property initializer to getter
// ERROR: Type mismatch: inferred type is A but B was expected
class A constructor() {}
interface B
val b: B = <caret>A()