Files
swift-mirror/test/Constraints/imported_rawValue_assignment.swift

11 lines
255 B
Swift

// RUN: %target-swift-frontend %clang-importer-sdk -parse %s -verify
// REQUIRES: objc_interop
import Foundation
class RV {
init() {
NSPrefixWordBreak2.BreakBarBas.rawValue = 0 // expected-error{{cannot assign to the result of this expression}}
}
}