-
-
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.
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package unit.issues; | ||
import unit.Test; | ||
|
||
private class AudioNode {} | ||
private class AudioParam {} | ||
|
||
private class AudioContext { | ||
public function new() {} | ||
public var destination:AudioNode; | ||
|
||
@:overload(function(destination:AudioNode, output:Int = 0, input:Int = 0):Void {}) | ||
public static function connectMeta(destination:AudioParam, output:Int = 0):Void {} | ||
|
||
public static extern inline overload function connect(destination:AudioNode, output:Int = 0, input:Int = 0):Void {} | ||
public static extern inline overload function connect(destination:AudioParam, output:Int = 0):Void {} | ||
} | ||
|
||
class Issue7794 extends Test { | ||
function test() { | ||
var ctx = new AudioContext(); | ||
AudioContext.connectMeta(ctx.destination); | ||
AudioContext.connect(ctx.destination); | ||
noAssert(); | ||
} | ||
} |