Tests:ObjectInheritingFromATrait test enhanced, ObjectInheritingFromClass test added.

This commit is contained in:
Pavel V. Talanov
2012-08-13 16:07:02 +04:00
parent 6febebc7b3
commit de3ebf9baa
3 changed files with 28 additions and 4 deletions
@@ -0,0 +1,9 @@
package foo
abstract class A(val s:String) {
}
object B : A("test") {
}
fun box() = B.s == "test"