Changes in tests/poly-selection.cfa [fd54fef:fcd0b9d7]
- File:
-
- 1 edited
-
tests/poly-selection.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/poly-selection.cfa
rfd54fef rfcd0b9d7 16 16 17 17 void testSpecializationFromGenericOverBareTyvar() { 18 forall( T &)18 forall( dtype T ) 19 19 void friend( T & ) { 20 20 printf("friending generically\n"); 21 21 } 22 22 23 forall( T &)23 forall(dtype T) 24 24 struct thing { 25 25 int x; 26 26 }; 27 27 28 forall( T &)28 forall( dtype T ) 29 29 void friend( thing(T) & ) { 30 30 printf("friending specifically\n"); … … 37 37 void testSpecializationFromGenericAccessibleWithExtraTyvars() { 38 38 39 forall( T &, U &)39 forall( dtype T, dtype U ) 40 40 struct map {}; 41 41 42 forall( T &)42 forall( dtype T ) 43 43 void f( T & ) { 44 44 printf("f-generic\n"); 45 45 } 46 46 47 forall( T &)47 forall( dtype T ) 48 48 void f( map(T, T) & ) { 49 49 printf("f-specific\n");
Note:
See TracChangeset
for help on using the changeset viewer.