-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Process types in primary constructor at model phase
this fixes #309
- Loading branch information
Showing
5 changed files
with
57 additions
and
3 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
compiler/test/data/typescript/import/resolveImportFromPrimaryConstructor/_stream.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
export declare interface ReadableOptions {} |
40 changes: 40 additions & 0 deletions
40
...cript/import/resolveImportFromPrimaryConstructor/resolveImportFromPrimaryConstructor.d.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// [test] resolveImportFromPrimaryConstructor.kt | ||
@file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS", "EXTERNAL_DELEGATION") | ||
|
||
import kotlin.js.* | ||
import kotlin.js.Json | ||
import org.khronos.webgl.* | ||
import org.w3c.dom.* | ||
import org.w3c.dom.events.* | ||
import org.w3c.dom.parsing.* | ||
import org.w3c.dom.svg.* | ||
import org.w3c.dom.url.* | ||
import org.w3c.fetch.* | ||
import org.w3c.files.* | ||
import org.w3c.notifications.* | ||
import org.w3c.performance.* | ||
import org.w3c.workers.* | ||
import org.w3c.xhr.* | ||
|
||
external open class MyRequest(options: ReadableOptions) | ||
|
||
// ------------------------------------------------------------------------------------------ | ||
// [test] _stream.kt | ||
@file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS", "EXTERNAL_DELEGATION") | ||
|
||
import kotlin.js.* | ||
import kotlin.js.Json | ||
import org.khronos.webgl.* | ||
import org.w3c.dom.* | ||
import org.w3c.dom.events.* | ||
import org.w3c.dom.parsing.* | ||
import org.w3c.dom.svg.* | ||
import org.w3c.dom.url.* | ||
import org.w3c.fetch.* | ||
import org.w3c.files.* | ||
import org.w3c.notifications.* | ||
import org.w3c.performance.* | ||
import org.w3c.workers.* | ||
import org.w3c.xhr.* | ||
|
||
external interface ReadableOptions |
5 changes: 5 additions & 0 deletions
5
...cript/import/resolveImportFromPrimaryConstructor/resolveImportFromPrimaryConstructor.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import * as stream from "./_stream"; | ||
|
||
declare class MyRequest { | ||
constructor(options: stream.ReadableOptions) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters