| Summary: | JvmTypesBuilder.toSetter should create a JvmOperation with void returnType. | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Ingo Meyer <ingo.meyer> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | sven.efftinge |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Ingo Meyer
sorry, the above code is confusing, here is the pure workaround from my JvmModelInferrer: // TODO We need to have void type for this method! val setter = x.toSetter( x.varName, t ) setter.returnType = typeRefs.getTypeForName( typeof( Void ), x ) members += setter one more thing... ;-) of course the primitive void should be used! so: setter.returnType = typeRefs.getTypeForName( Void::TYPE, x ) is correct in my example case. In Xtext 2.3 I see that the void type is correctly set, so closing this old one... Thank you, for verifying :-) |