Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ fun checkAndCall(b: Base) {
}

fun main() {
checkAndCall(Derived1()) // Upcast
/* checkAndCall(Derived1()) // Upcast
checkAndCall(Derived2()) // Upcast
trace eq """
Derived1.f()
Derived1.g()
Derived2.f()
Derived2.h()
"""
*/
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ files:
visible: true
placeholders:
- offset: 80
length: 540
length: 361
placeholder_text: // TODO
- name: test/Tests.kt
visible: false
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Wizard:
fun Character.playTurn() = name + ": " + play()

fun main() {
listOf(
/* listOf(
Warrior(),
Elf(),
FightingElf(),
Expand All @@ -57,4 +57,5 @@ fun main() {
"[Warrior: Fight!, Elf: Magic!, " +
"FightingElf: Magic!Fight!, " +
"Dragon: Fly!, Wizard: Magic!Fly!]"
*/
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@ files:
placeholders:
- offset: 592
length: 76
placeholder_text: class Dragon
placeholder_text: '// class Dragon:'
- offset: 670
length: 98
placeholder_text: class Wizard
- offset: 924
length: 13
placeholder_text: TODO()
placeholder_text: '// class Wizard:'
- name: test/Tests.kt
visible: false