Changeset c08c3cf for tests/poly-selection.cfa
- Timestamp:
- Jan 20, 2021, 8:46:31 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 481cf3a
- Parents:
- 467c8b7 (diff), 9db2c92 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
tests/poly-selection.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/poly-selection.cfa
r467c8b7 rc08c3cf 16 16 17 17 void testSpecializationFromGenericOverBareTyvar() { 18 forall( dtype T)18 forall( T & ) 19 19 void friend( T & ) { 20 20 printf("friending generically\n"); 21 21 } 22 22 23 forall( dtype T)23 forall(T &) 24 24 struct thing { 25 25 int x; 26 26 }; 27 27 28 forall( dtype T)28 forall( T & ) 29 29 void friend( thing(T) & ) { 30 30 printf("friending specifically\n"); … … 37 37 void testSpecializationFromGenericAccessibleWithExtraTyvars() { 38 38 39 forall( dtype T, dtype U)39 forall( T &, U & ) 40 40 struct map {}; 41 41 42 forall( dtype T)42 forall( T & ) 43 43 void f( T & ) { 44 44 printf("f-generic\n"); 45 45 } 46 46 47 forall( dtype T)47 forall( T & ) 48 48 void f( map(T, T) & ) { 49 49 printf("f-specific\n");
Note:
See TracChangeset
for help on using the changeset viewer.