Tests for obsolete KT-5232: vfy error with default parameter in method of trait
#KT-5232 Obsolete
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
trait A {
|
||||
fun visit(a:Int, b:String="") : String = b + a
|
||||
}
|
||||
|
||||
class B : A {
|
||||
override fun visit(a:Int, b:String) : String = b + a
|
||||
}
|
||||
|
||||
class C : A {
|
||||
<!NOTHING_TO_OVERRIDE!>override<!> fun visit(a:Int) : String = "" + a
|
||||
}
|
||||
Reference in New Issue
Block a user