Fix "unexpected error type" exception in constructor conversion

So #KT-20218 Fixed
This commit is contained in:
Mikhail Glukhikh
2017-09-14 13:02:00 +03:00
committed by Mikhail Glukhikh
parent 13fc526695
commit faaddacec6
4 changed files with 30 additions and 1 deletions
@@ -0,0 +1,6 @@
// SKIP_ERRORS_BEFORE
// SKIP_ERRORS_AFTER
class Foo(val <caret>arg: Int) {
val arg = arg
}
@@ -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
}