Changes in tests/poly-selection.cfa [fcd0b9d7:fd54fef]
- File:
-
- 1 edited
-
tests/poly-selection.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/poly-selection.cfa
rfcd0b9d7 rfd54fef 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.