Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(997)

Unified Diff: sky/framework/fn.dart

Issue 987613002: Make stocksapp.dart almost pass the dart analyzer. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/examples/stocks-fn/stocksapp.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/fn.dart
diff --git a/sky/framework/fn.dart b/sky/framework/fn.dart
index c0dbcd98941c9318f757b3188718e0856d724d8e..c481aee5fb8ef9bcae67b177ac4374d75bfcc939 100644
--- a/sky/framework/fn.dart
+++ b/sky/framework/fn.dart
@@ -10,7 +10,7 @@ import 'dart:sky' as sky;
import 'reflect.dart' as reflect;
bool _initIsInCheckedMode() {
- void testFn(double i) {}
+ String testFn(i) { double d = i; return d.toString(); }
try {
testFn('not a double');
} catch (ex) {
@@ -405,7 +405,6 @@ class Container extends Element {
String get _tagName => 'div';
static final Container _emptyContainer = new Container();
-
Element get _emptyElement => _emptyContainer;
Container({
@@ -470,8 +469,11 @@ class Anchor extends Element {
String get _tagName => 'a';
static final Anchor _emptyAnchor = new Anchor();
+ Element get _emptyElement => _emptyAnchor;
String href;
+ int width;
+ int height;
Anchor({
Object key,
« no previous file with comments | « sky/examples/stocks-fn/stocksapp.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698