-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new op overload error case unit tests
- Loading branch information
Showing
4 changed files
with
18 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,6 @@ | ||
// test: this should compiler error, since SinOsc is a child of UGen | ||
// and => is already defined for UGen => UGen | ||
fun void @operator =>( SinOsc lhs, SinOsc rhs ) | ||
{ | ||
<<< "cannot get here" >>>; | ||
} |
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,3 @@ | ||
error-op-overload-child-1.ck:3:20: error: binary operator '=>' already overloaded on types 'SinOsc' and 'SinOsc' (or their parents)... | ||
[3] fun void @operator =>( SinOsc lhs, SinOsc rhs ) | ||
^ |
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,6 @@ | ||
// test: this should compiler error, since SinOsc and NRev are | ||
// children of UGen and => is already defined for UGen => UGen | ||
fun void @operator =>( SinOsc lhs, NRev rhs ) | ||
{ | ||
<<< "cannot get here" >>>; | ||
} |
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,3 @@ | ||
error-op-overload-child-2.ck:3:20: error: binary operator '=>' already overloaded on types 'SinOsc' and 'NRev' (or their parents)... | ||
[3] fun void @operator =>( SinOsc lhs, NRev rhs ) | ||
^ |