-
-
Notifications
You must be signed in to change notification settings - Fork 662
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[analyzer] move extern purity checks to interference report
see #10908
- Loading branch information
Showing
3 changed files
with
34 additions
and
13 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package issues; | ||
|
||
extern class Vim { | ||
static function list_extend<T>(target:Array<T>, source:Array<T>):Array<T>; | ||
} | ||
|
||
class Issue10908 { | ||
@:js(' | ||
return issues.Vim.list_extend(issues.Vim.list_extend([],tableA),tableB); | ||
') | ||
static function test<T>(tableA:Array<T>, tableB:Array<T>):Array<T> { | ||
final result = Vim.list_extend([], tableA); | ||
return Vim.list_extend(result, tableB); | ||
} | ||
} |
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