Fix "unexpected error type" exception in constructor conversion
So #KT-20218 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
13fc526695
commit
faaddacec6
@@ -0,0 +1,6 @@
|
||||
// SKIP_ERRORS_BEFORE
|
||||
// SKIP_ERRORS_AFTER
|
||||
|
||||
class Foo(val <caret>arg: Int) {
|
||||
val arg = arg
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// SKIP_ERRORS_BEFORE
|
||||
// SKIP_ERRORS_AFTER
|
||||
|
||||
class Foo {
|
||||
val arg: Int
|
||||
|
||||
constructor(arg: Int) {
|
||||
this.arg = arg
|
||||
this.arg = arg
|
||||
}
|
||||
|
||||
val arg
|
||||
}
|
||||
Reference in New Issue
Block a user