Propagate control flow to bound double colon expressions
"Unused expression" should be reported on unused double colon expressions, this is postponed #KT-12551 Open
This commit is contained in:
@@ -18,12 +18,12 @@ fun foo(): Any = ::bar
|
||||
L0:
|
||||
1 <START>
|
||||
mark(::bar)
|
||||
magic[CALLABLE_REFERENCE](::bar) -> <v0>
|
||||
magic[UNBOUND_CALLABLE_REFERENCE](::bar) -> <v0>
|
||||
ret(*|<v0>) L1
|
||||
L1:
|
||||
<END> NEXT:[<SINK>]
|
||||
<END> NEXT:[<SINK>]
|
||||
error:
|
||||
<ERROR> PREV:[]
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
<SINK> PREV:[<ERROR>, <END>]
|
||||
=====================
|
||||
<SINK> PREV:[<ERROR>, <END>]
|
||||
=====================
|
||||
|
||||
@@ -6,5 +6,5 @@ fun bar(): Int = 1
|
||||
== foo ==
|
||||
fun foo(): Any = ::bar
|
||||
---------------------
|
||||
::bar <v0>: {<: Any} NEW: magic[CALLABLE_REFERENCE](::bar) -> <v0>
|
||||
::bar <v0>: {<: Any} NEW: magic[UNBOUND_CALLABLE_REFERENCE](::bar) -> <v0>
|
||||
=====================
|
||||
|
||||
Reference in New Issue
Block a user