Import for buildSequence in generated code for sequences
This commit is contained in:
@@ -10,6 +10,7 @@ package kotlin.sequences
|
||||
|
||||
import kotlin.js.*
|
||||
import kotlin.comparisons.*
|
||||
import kotlin.coroutines.experimental.*
|
||||
|
||||
/**
|
||||
* Returns `true` if [element] is found in the sequence.
|
||||
|
||||
@@ -10,6 +10,7 @@ package kotlin.sequences
|
||||
//
|
||||
|
||||
import kotlin.comparisons.*
|
||||
import kotlin.coroutines.experimental.*
|
||||
|
||||
/**
|
||||
* Returns `true` if [element] is found in the sequence.
|
||||
|
||||
@@ -106,7 +106,13 @@ private fun List<ConcreteFunction>.writeTo(file: File, sourceFile: SourceFile, p
|
||||
writer.appendln("import withType")
|
||||
}
|
||||
}
|
||||
writer.append("import kotlin.comparisons.*\n\n")
|
||||
writer.appendln("import kotlin.comparisons.*")
|
||||
|
||||
if (platform != Platform.Common && sourceFile == SourceFile.Sequences) {
|
||||
writer.appendln("import kotlin.coroutines.experimental.*")
|
||||
}
|
||||
|
||||
writer.appendln()
|
||||
|
||||
for (f in this) {
|
||||
f.textBuilder(writer)
|
||||
|
||||
Reference in New Issue
Block a user