commit | d42b88962fce110a7ca05f026267dcee9360a1b4 | [log] [tgz] |
---|---|---|
author | Greg Lowe <greg@vis.net.nz> | Sun Jun 03 16:30:23 2018 +1200 |
committer | Greg Lowe <greg@vis.net.nz> | Sun Jun 03 17:17:02 2018 +1200 |
tree | 9e6e68d931d71431985c0675e6271bf4177ce40f | |
parent | 908095250944fdcef44094fefeb5c4c0bd64d03f [diff] |
Dart 2: remove type inference warning
diff --git a/example/lambdas.dart b/example/lambdas.dart index c8ffd92..b7a9ff2 100644 --- a/example/lambdas.dart +++ b/example/lambdas.dart
@@ -2,7 +2,7 @@ main() { var t = new Template('{{ foo }}'); - var lambda = (_) => 'bar'; + Function lambda = (_) => 'bar'; var output = t.renderString({'foo': lambda}); // bar print(output);