Index: sky/examples/fn/lib/fn.dart |
diff --git a/sky/examples/fn/lib/fn.dart b/sky/examples/fn/lib/fn.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..30ec0408a60f215e07ec29752fca74dacb3f1f92 |
--- /dev/null |
+++ b/sky/examples/fn/lib/fn.dart |
@@ -0,0 +1,27 @@ |
+library fn; |
+ |
+import 'dart:async'; |
+import 'dart:collection'; |
+import 'dart:sky' as sky; |
+import 'reflect.dart' as reflect; |
+ |
+part 'component.dart'; |
+part 'node.dart'; |
+part 'style.dart'; |
+ |
+bool _checkedMode; |
+ |
+bool debugWarnings() { |
+ void testFn(double i) {} |
+ |
+ if (_checkedMode == null) { |
+ _checkedMode = false; |
+ try { |
+ testFn('not a double'); |
+ } catch (ex) { |
+ _checkedMode = true; |
+ } |
+ } |
+ |
+ return _checkedMode; |
+} |