File tree 1 file changed +8
-8
lines changed 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
# Strong mode generic method prototype syntax
2
2
3
- This is a summary of the current (as of January 2016) supported comment-based
4
- generic method syntax supported by the analyzer strong mode and the Dart Dev
5
- Compiler. The comment-based syntax essentially uses the proposed actual generic
6
- method syntax, but wraps it in comments. This allows developers to experiment
7
- with generic methods while still ensuring that their code runs on all platforms
8
- while generic methods are still being evaluated for inclusion into the language.
3
+ This is a summary of the current (as of January 2016) comment-based generic
4
+ method syntax supported by the analyzer strong mode and the Dart Dev Compiler.
5
+ The comment-based syntax essentially uses the proposed actual generic method
6
+ syntax, but wraps it in comments. This allows developers to experiment with
7
+ generic methods while still ensuring that their code runs on all platforms while
8
+ generic methods are still being evaluated for inclusion into the language.
9
9
10
10
## Declaring generic method parameters
11
11
12
- Generic method parameters are listed after the method or function name, inside
13
- of angle brackets and comments .
12
+ Generic method parameters are listed using a block comment after the method or
13
+ function name, inside of angle brackets.
14
14
15
15
``` dart
16
16
// This declares a function which takes two unused generic method parameters
You can’t perform that action at this time.
0 commit comments