| // RUN: not llvm-tblgen %s 2>&1 | FileCheck %s | |
| // Test that 'let append' on unsupported types produces an error. | |
| class Base { | |
| int count = 0; | |
| } | |
| // CHECK: error: Cannot append to field 'count' of type 'int' (expected list, string, code, or dag) | |
| def Bad : Base { | |
| let append count = 1; | |
| } |