mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Merge "diagnostic with Java 8" tests with general diagnostic tests
This commit is contained in:
8
compiler/testData/diagnostics/testsWithStdLib/java/patternCompileCallableReference.kt
vendored
Normal file
8
compiler/testData/diagnostics/testsWithStdLib/java/patternCompileCallableReference.kt
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
// FULL_JDK
|
||||
// SKIP_TXT
|
||||
|
||||
import java.util.regex.Pattern
|
||||
|
||||
val strs: List<String> = listOf("regex1", "regex2")
|
||||
|
||||
val patterns: List<Pattern> = strs.map(Pattern::compile)
|
||||
Reference in New Issue
Block a user