-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flow][multiplat] Support nominal renders in common interface files
Summary: Followup of D66711903. We need to do this for render as well. Unlike the component subtyping case, we do not need to do a component structural subtyping checking here, since the same check would already be done during the common interface conformance check Changelog: [internal] Reviewed By: gkz Differential Revision: D66887907 fbshipit-source-id: fc7a59e25060e531bfb92015b8335f2bd42aa479
- Loading branch information
1 parent
0098c07
commit e84f7c7
Showing
4 changed files
with
40 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
declare export component Foo(bar: string, baz: number); // incompatible-type with baz prop, otherwise ok | ||
declare export component Foo(bar: string, baz: number) renders Base; // incompatible-type with baz prop, otherwise ok | ||
declare component Base(); | ||
declare component Acid(); | ||
|
||
declare export component DifferentRenders() renders Acid; // error: incompatible renders type |
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 |
---|---|---|
@@ -1 +1,4 @@ | ||
declare export component Foo(bar: string, baz: boolean) | ||
declare export component Foo(bar: string, baz: boolean) renders Base; | ||
declare component Base(); | ||
|
||
declare export component DifferentRenders() renders Base; |
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