blob: 1fd88c52d79248c8717a510447ee73877490e90b [file] [log] [blame]
// Copyright (c) 2017, 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 String address
/// read-only
/// @description Checks that [address] is read-only
/// @author
import "../../../Utils/expect.dart";
import "dart:io";
main() {
dynamic address = new InternetAddress("");
Expect.throws(() {
address.address = "";
}, (e) => e is NoSuchMethodError);