e2d6e0cbab
"Unused expression" should be reported on unused double colon expressions, this is postponed #KT-12551 Open
30 lines
662 B
Plaintext
Vendored
30 lines
662 B
Plaintext
Vendored
== bar ==
|
|
fun bar(): Int = 1
|
|
---------------------
|
|
L0:
|
|
1 <START>
|
|
r(1) -> <v0>
|
|
ret(*|<v0>) L1
|
|
L1:
|
|
<END> NEXT:[<SINK>]
|
|
error:
|
|
<ERROR> PREV:[]
|
|
sink:
|
|
<SINK> PREV:[<ERROR>, <END>]
|
|
=====================
|
|
== foo ==
|
|
fun foo(): Any = ::bar
|
|
---------------------
|
|
L0:
|
|
1 <START>
|
|
mark(::bar)
|
|
magic[UNBOUND_CALLABLE_REFERENCE](::bar) -> <v0>
|
|
ret(*|<v0>) L1
|
|
L1:
|
|
<END> NEXT:[<SINK>]
|
|
error:
|
|
<ERROR> PREV:[]
|
|
sink:
|
|
<SINK> PREV:[<ERROR>, <END>]
|
|
=====================
|