Make change signature fix non-applicable for constructors (EA-76554)
This commit is contained in:
Vendored
+9
@@ -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()
|
||||
Reference in New Issue
Block a user