OLD | NEW |
(Empty) | |
| 1 40 columns | |
| 2 >>> function declaration |
| 3 int f/*<S, T>*/(int x) => 3; |
| 4 <<< |
| 5 int f/*<S, T>*/(int x) => 3; |
| 6 >>> type bounds |
| 7 int f/*<S extends Set<S>>*/(int x) => 3; |
| 8 <<< |
| 9 int f/*<S extends Set<S>>*/(int x) => 3; |
| 10 >>> method |
| 11 class C { |
| 12 static int f/*<S, T>*/(int x) => 3; |
| 13 int m/*<S, T>*/(int x) => 3; |
| 14 } |
| 15 <<< |
| 16 class C { |
| 17 static int f/*<S, T>*/(int x) => 3; |
| 18 int m/*<S, T>*/(int x) => 3; |
| 19 } |
| 20 >>> function type parameter |
| 21 void foo(int f/*<S>*/(int x)) {} |
| 22 <<< |
| 23 void foo(int f/*<S>*/(int x)) {} |
| 24 >>> variable |
| 25 var x = /*<S>*/(int x) => x; |
| 26 <<< |
| 27 var x = /*<S>*/(int x) => x; |
| 28 >>> parameter type |
| 29 foo/*<S>*/(dynamic/*=S*/ x) => x; |
| 30 <<< |
| 31 foo/*<S>*/(dynamic/*=S*/ x) => x; |
| 32 >>> return type |
| 33 dynamic/*=S*/ foo/*<S>*/() => x; |
| 34 <<< |
| 35 dynamic/*=S*/ foo/*<S>*/() => x; |
| 36 >>> without dynamic |
| 37 main() { |
| 38 /*=S*/ foo/*<S>*/(/*=S*/ x) {return x;} |
| 39 } |
| 40 <<< |
| 41 main() { |
| 42 /*=S*/ foo/*<S>*/(/*=S*/ x) { |
| 43 return x; |
| 44 } |
| 45 } |
| 46 >>> var |
| 47 void foo/*<S>*/(var /*=S*/ x) { |
| 48 var /*=S*/ y = x; |
| 49 } |
| 50 <<< |
| 51 void foo/*<S>*/(var/*=S*/ x) { |
| 52 var/*=S*/ y = x; |
| 53 } |
OLD | NEW |