blob: 0e5d43f6e8fed5f960fd9bba2843ea9a24f9049c [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 If e translates to F then e(args) translates to:
/// PASSTHRU[F, fn[x] => x(ARGS(args))]
///
/// @description If e translates to F then e(args) translates to:
/// PASSTHRU[F, fn[x] => x(ARGS(args))]. Test extension
/// @author sgrekhov@unipro.ru
// Requirements=nnbd-strong
import "../../Utils/expect.dart";
extension Tricky on int {
String call(String s) => s;
}
main() {
Expect.equals("Lily was here", 2("Lily was here"));
}