diff options
| author | Tim Foley <tfoley@nvidia.com> | 2017-10-30 10:03:52 -0700 |
|---|---|---|
| committer | Tim Foley <tfoley@nvidia.com> | 2017-10-30 10:26:22 -0700 |
| commit | 11f44241ffef478560eaba79af330c16f0bc8d69 (patch) | |
| tree | 5f7b06149f5d6e0af9241db8f60b28b9c07785f1 /tests/compute/generics-constrained.slang | |
| parent | 42f1cff5c1471e6bc3988a9810c20b8bcc1c84dd (diff) | |
Allow for implicit `this` expressions.
- When peforming ordinary lookup, if the container declaration for a scope is an aggregate type or `extension` decl, then use a "breadcrumb" to make sure that we use a `this` expression as the base of any resulting declaration reference
- Add a test case for implicit `this` usage
- Update constrained generic test case to use implicit `this` for member reference, as was originally intended
Diffstat (limited to 'tests/compute/generics-constrained.slang')
| -rw-r--r-- | tests/compute/generics-constrained.slang | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/compute/generics-constrained.slang b/tests/compute/generics-constrained.slang index 669674376..c8ab71bfa 100644 --- a/tests/compute/generics-constrained.slang +++ b/tests/compute/generics-constrained.slang @@ -17,9 +17,7 @@ struct A : Helper // TODO: we should be able to reference a member variable here, // but the front-end isn't handling references through `this` // properly yet. -// return a; - - return 1.0f; + return a; } }; |
