Ian Lynagh
24c4c3e068
Kotlin 2: Accept a test change
...
With:
open class Root {}
class Subclass1: Root() {}
fun typeTests(x: Root, y: Subclass1) {
val y1: Subclass1 = if (x is Subclass1) { x } else { y }
}
we now get a slightly different AST, which means we no longer need to
insert a StmtExpr:
BRANCH
if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=<root>.Subclass1
GET_VAR 'x: <root>.Root declared in <root>.typeTests' type=<root>.Root origin=null
- then: TYPE_OP type=<root>.Subclass1 origin=IMPLICIT_CAST typeOperand=<root>.Subclass1
- BLOCK type=<root>.Root origin=null
+ then: BLOCK type=<root>.Subclass1 origin=null
+ TYPE_OP type=<root>.Subclass1 origin=IMPLICIT_CAST typeOperand=<root>.Subclass1
GET_VAR 'x: <root>.Root declared in <root>.typeTests' type=<root>.Root origin=null
2024-03-28 15:07:30 +00:00
..
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:14 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:14 +00:00
2024-02-07 15:12:17 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:14 +00:00
2023-11-17 14:07:13 +00:00
2024-01-10 16:39:47 +00:00
2023-11-17 14:07:14 +00:00
2023-11-17 14:07:13 +00:00
2024-02-16 16:41:41 +00:00
2023-11-17 14:07:13 +00:00
2024-02-07 15:17:40 +00:00
2024-02-07 15:32:04 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00
2024-03-28 15:07:30 +00:00
2023-11-17 14:07:14 +00:00
2023-11-17 14:07:14 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:14 +00:00
2023-11-17 14:07:15 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:14 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:15 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:15 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00
2024-02-20 15:27:43 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:15 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:15 +00:00
2023-11-17 14:07:13 +00:00
2024-02-08 17:44:38 +00:00
2023-11-17 14:07:15 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:15 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:15 +00:00
2023-11-17 14:07:15 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:15 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:15 +00:00
2023-11-17 14:07:13 +00:00
2024-02-16 17:18:49 +00:00
2023-11-17 14:07:15 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00
2024-02-22 18:57:12 +00:00
2023-11-17 14:07:14 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00
2024-02-20 15:41:22 +00:00
2024-02-09 13:53:05 +00:00
2023-11-17 14:07:15 +00:00
2023-11-17 14:07:15 +00:00
2023-11-17 14:07:13 +00:00
2024-02-23 13:52:05 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00
2024-02-16 14:17:04 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:14 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:14 +00:00
2023-12-04 16:44:38 +00:00
2023-11-17 14:07:13 +00:00
2023-11-17 14:07:13 +00:00