diff options
| author | Yong He <yonghe@outlook.com> | 2023-04-07 10:12:00 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-07 10:12:00 -0700 |
| commit | ea15647ba6bccb5ac48de5f4b80b8c2769d69b8f (patch) | |
| tree | 1c3568c821f1371afd15ad40507c6109377f452a /tests/diagnostics/generic-type-inference-fail.slang.expected | |
| parent | 0468cd0d1a8a1cff1d838a741b050ef11f6d7461 (diff) | |
Diagnose on attempt to specialize with interface type. (#2780)
* Diagnose on attempt to specialize with interface type.
Fixes ##1445.
* Enable fixed test.
* Fix test.
* Fix.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/diagnostics/generic-type-inference-fail.slang.expected')
| -rw-r--r-- | tests/diagnostics/generic-type-inference-fail.slang.expected | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/diagnostics/generic-type-inference-fail.slang.expected b/tests/diagnostics/generic-type-inference-fail.slang.expected new file mode 100644 index 000000000..3f9753d68 --- /dev/null +++ b/tests/diagnostics/generic-type-inference-fail.slang.expected @@ -0,0 +1,9 @@ +result code = -1 +standard error = { +tests/diagnostics/generic-type-inference-fail.slang(66): error 39999: could not specialize generic for arguments of type (int) + var obj3 = CreateT_Assoc_Inner(1); // ERROR. + ^ +tests/diagnostics/generic-type-inference-fail.slang(18): note 39999: see declaration of func CreateT_Assoc_Inner<T>(int) -> T.TAssoc +} +standard output = { +} |
