From ef244c6dd1296ece7e64f4b7b7fa0002c4a8f6cf Mon Sep 17 00:00:00 2001 From: Sean Eagan Date: Thu, 21 May 2015 08:46:25 -0500 Subject: [PATCH] Support `import foo;` in alternative syntax --- proposal.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proposal.md b/proposal.md index 35d2b56..db84a3c 100644 --- a/proposal.md +++ b/proposal.md @@ -86,8 +86,9 @@ current package. We use `:` to split the package name from the path. For example: ```dart +import foo; // equivalent to import 'package:foo/foo.dart' import foo:src.bar; // equivalent to import 'package:foo/src/bar.dart' -import src.bar; // equivalent to import 'package:self_package/src/bar.dart' +import :src.bar; // equivalent to import 'package:self_package/src/bar.dart' // (where self_package is the current package name) import dart:async; // same as import 'dart:async' ```