blob: 6e4d7bc4c3cef7c4d69a3ad38a97ff75d4b0b2fa [file] [log] [blame]
// Copyright (c) 2015, 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 Evaluation of a conditional property extraction expression e of
* the form e1?.id is equivalent to the evaluation of the expression
* ((x) => x == null?null : x.id)(e1), unless e1 is a type literal, in which
* case it is equivalent to e1.m.
* @description Check that for static property e1?.id is equivalent to e1.id
* @author sgrekhov@unipro.ru
*/
import '../../../Utils/expect.dart';
class C {
static String id = "id";
}
main() {
Expect.equals(C?.id, C.id);
}