-
Notifications
You must be signed in to change notification settings - Fork 4
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 #13 from funkwerk/bug11
auto return type for accessors
- Loading branch information
Showing
6 changed files
with
81 additions
and
24 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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
.dub | ||
__test__*__ | ||
/accessors-test-library | ||
/accessors |
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 |
---|---|---|
|
@@ -6,8 +6,9 @@ os: | |
language: d | ||
|
||
d: | ||
- dmd-2.073.1 | ||
- dmd-2.072.2 | ||
- dmd-2.076.1 | ||
- dmd-2.075.1 | ||
- dmd-2.074.1 | ||
|
||
env: | ||
matrix: | ||
|
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,5 @@ | ||
module PersonId; | ||
|
||
class PersonId | ||
{ | ||
} |
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,26 @@ | ||
import accessors; | ||
|
||
void main() | ||
{ | ||
} | ||
|
||
// Issue #11: https://github.com/funkwerk/accessors/issues/11 | ||
@nogc nothrow pure @safe unittest | ||
{ | ||
import PersonId : AnotherPersonId = PersonId; | ||
|
||
class PersonId | ||
{ | ||
} | ||
|
||
class Foo | ||
{ | ||
@ConstRead | ||
private AnotherPersonId anotherPersonId_; | ||
|
||
@Read | ||
private AnotherPersonId[] personIdArray_; | ||
|
||
mixin(GenerateFieldAccessors); | ||
} | ||
} |