JET-113 Check returns in secondary constructors
This commit is contained in:
@@ -110,4 +110,13 @@ fun blockReturnValueTypeMatch() : Int {
|
||||
else return <error>1.0</error>
|
||||
}
|
||||
|
||||
val a = <error>return 1</error>
|
||||
val a = <error>return 1</error>
|
||||
|
||||
class A() {
|
||||
this(a : Int) : this() {
|
||||
if (a == 1)
|
||||
return
|
||||
return <error>1</error>
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user