Fixed bug with importing some of SAM-constructors and factory functions
#KT-3449 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import java.util.Collections
|
||||
import java.util.ArrayList
|
||||
|
||||
fun foo() {
|
||||
Collections.sort(
|
||||
ArrayList<Int>(),
|
||||
<selection>java.util.Comparator</selection> {(x: Int, y: Int) -> x - y }
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import java.util.Collections
|
||||
import java.util.ArrayList
|
||||
import java.util.Comparator
|
||||
|
||||
fun foo() {
|
||||
Collections.sort(
|
||||
ArrayList<Int>(),
|
||||
Comparator {(x: Int, y: Int) -> x - y }
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user