File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ class BaseImpl(val x: Int) : Base {
17
17
class Derived (b : Base ) : Base by b
18
18
19
19
fun main () {
20
- val b = BaseImpl (10 )
21
- Derived (b ).print ()
20
+ val base = BaseImpl (10 )
21
+ Derived (base ).print ()
22
22
}
23
23
```
24
24
{kotlin-runnable="true"}
@@ -48,9 +48,9 @@ class Derived(b: Base) : Base by b {
48
48
}
49
49
50
50
fun main () {
51
- val b = BaseImpl (10 )
52
- Derived (b ).printMessage()
53
- Derived (b ).printMessageLine()
51
+ val base = BaseImpl (10 )
52
+ Derived (base ).printMessage()
53
+ Derived (base ).printMessageLine()
54
54
}
55
55
```
56
56
{kotlin-runnable="true"}
@@ -64,7 +64,7 @@ interface Base {
64
64
fun print ()
65
65
}
66
66
67
- class BaseImpl (val x : Int ) : Base {
67
+ class BaseImpl (x : Int ) : Base {
68
68
override val message = " BaseImpl: x = $x "
69
69
override fun print () { println (message) }
70
70
}
You can’t perform that action at this time.
0 commit comments