Explanation of Oslo error "M0197: 'Text' cannot be used in a Type context"?
In Microsoft Oslo SDK CTP 2008 (using Intellipad) the following code compiles fine: module M { type T { Text : Text; } } while compiling the below code leads to the error "M0197: 'Text' cannot be used in a Type context" module M { type T { Text : Text; Value : Text; // error } } I do not see the difference between the examples, as in the first case Text is also used in a Type context. To add to the confusion, consider the following example, which also compiles fine: module M { type X; type T { X : X; Y : X; } } The Oslo M Language Specification states that: Field declarations override lexical
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.