summaryrefslogtreecommitdiffstats
path: root/tests/doc
diff options
context:
space:
mode:
authorAlexey Panteleev <alpanteleev@nvidia.com>2022-04-01 10:56:02 -0700
committerGitHub <noreply@github.com>2022-04-01 10:56:02 -0700
commit2ddd252db192ab4376994d34cb9be862f97b5449 (patch)
treeca828032001de1b465e84a6c76b80177a4036649 /tests/doc
parent255fd5873f65a6b01d5385c277d55612dc3cc587 (diff)
Improved type printing (#2172)
Improved the type printing function to include the generic substitutions and parent types. Added a test for it, mismatching-types.slang
Diffstat (limited to 'tests/doc')
-rw-r--r--tests/doc/doc.slang.expected14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/doc/doc.slang.expected b/tests/doc/doc.slang.expected
index 95b3381b5..df51728e7 100644
--- a/tests/doc/doc.slang.expected
+++ b/tests/doc/doc.slang.expected
@@ -49,7 +49,7 @@ A useless method hey ho
## Signature
```
-T ParentStruct<T>.ChildStruct<S>.getValue(S v);
+ParentStruct.T ParentStruct<T>.ChildStruct<S>.getValue(ParentStruct<ParentStruct.T>.ChildStruct.S v);
```
## Parameters
@@ -77,7 +77,7 @@ T ParentStruct<T>.ChildStruct<S>.getValue(S v);
## Signature
```
-T GenericStruct<T>.getValue();
+GenericStruct.T GenericStruct<T>.getValue();
```
--------------------------------------------------------------------------------
@@ -120,7 +120,7 @@ void Hey::doAnotherThing(int a);
# inputBuffer
```
-RWStructuredBuffer inputBuffer
+RWStructuredBuffer<int> inputBuffer
```
## Description
@@ -160,9 +160,9 @@ Add two integers
## Signature
```
-V IDoThing.add(
- V a,
- V b);
+IDoThing.V IDoThing.add(
+ IDoThing.V a,
+ IDoThing.V b);
```
## Parameters
@@ -330,7 +330,7 @@ An enum
# outputBuffer
```
-RWStructuredBuffer outputBuffer
+RWStructuredBuffer<int> outputBuffer
```
## Description