blob: d5616eaa5a44336791f485d6b816cd40a2641537 [file] [log] [blame]
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/// @assertion It is a compile-time error if the extension does not declare a
/// member with the provided name.
/// @description Check that compile time error is thrown if the extension called
/// with the prefix does not declare a member with the given name
/// @author
import "extension_conflict_resolution_lib.dart" as testlib;
main() {
bool res = testlib.MySimpleExt("testme").isLibraryVersion;
int i = testlib.MySimpleExt("testme").getANum();
bool res1 = testlib.MySimpleExt("testme").isInt;
// ^^^^^
// [cfe] Member not found: 'isInt'.
var res2 = testlib.MySimpleExt("testme").getTest();
// ^^^^^^^
// [cfe] Method not found: 'getTest'.
// ^^^
// [cfe] Method not found: 'put'.