K2: add test to reproduce KT-64266
This commit is contained in:
committed by
Space Team
parent
81efc8d7c7
commit
44aa2d86d3
@@ -0,0 +1,15 @@
|
||||
// -- Module: <m1> --
|
||||
|
||||
// -- Module: <m2> --
|
||||
/m2.kt:13:9: warning: parameter 'f' is never used
|
||||
fun foo(f: (Some, String) -> Unit) {}
|
||||
^
|
||||
/m2.kt:14:9: warning: parameter 'f' is never used
|
||||
fun bar(f: (Some) -> Unit) {}
|
||||
^
|
||||
|
||||
// -- Module: <m3> --
|
||||
/m3.kt:23:17: error: unresolved reference: Some
|
||||
foo { some: Some, _ -> }
|
||||
^
|
||||
|
||||
Reference in New Issue
Block a user