KT-2382 Placing final modifier to overriden method in trait produces runtime exception

#KT-2382 Fixed
This commit is contained in:
Alexander Udalov
2012-07-11 20:13:33 +04:00
parent c14a0b3c84
commit b55ef01e54
3 changed files with 17 additions and 1 deletions
@@ -0,0 +1,9 @@
//KT-2382
trait T {
final fun foo() = "OK"
}
class S : T { }
fun box(): String = S().foo()