Import kotlin.coroutines.experimental for generated sequences on all platforms
This will add import to common generated sources
This commit is contained in:
@@ -9,6 +9,7 @@ package kotlin.sequences
|
||||
//
|
||||
|
||||
import kotlin.comparisons.*
|
||||
import kotlin.coroutines.experimental.*
|
||||
|
||||
/**
|
||||
* Returns `true` if [element] is found in the sequence.
|
||||
|
||||
@@ -87,7 +87,7 @@ fun List<MemberBuilder>.writeTo(file: File, platformSource: PlatformSourceFile)
|
||||
}
|
||||
writer.appendln("import kotlin.comparisons.*")
|
||||
|
||||
if (platform != Platform.Common && sourceFile == SourceFile.Sequences) {
|
||||
if (sourceFile == SourceFile.Sequences) {
|
||||
writer.appendln("import kotlin.coroutines.experimental.*")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user