blob: 875c9d8b8b1fa620e4546a71205cdda42c24db3f [file] [log] [blame]
// Copyright (c) 2013, 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.
// Test that switching on type literals leads to a compile time error in
// dart2js since its implementation of [Type] implements 'operator =='.
class C {}
var v;
main() {
switch (v) {
case C: break; // //# 01: compile-time error