Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from marcins/issue-37-defaultargs
Add useful tests for debugging #37
- Loading branch information
Showing
4 changed files
with
42 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
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,11 @@ | ||
component accessors="true" { | ||
property name="DSN"; | ||
property name="ID"; | ||
|
||
// to reveal an ordering bug changed ID to cd just so it comes before dsn | ||
public any function init( dsn, cd = 0 ) { | ||
variables.dsn = dsn; | ||
variables.ID = cd; | ||
return this; | ||
} | ||
} |
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,12 @@ | ||
component accessors="true" { | ||
property name="DSN"; | ||
property name="ID"; | ||
property name="name"; | ||
|
||
public any function init( dsn, ID = 0, NAME = "Bob") { | ||
variables.dsn = dsn; | ||
variables.ID = ID; | ||
variables.name = name; | ||
return this; | ||
} | ||
} |