Skip to content

Bogus Type Expected compiler error with CLIPPER method with no args/return type #1907

@cpyrgas

Description

@cpyrgas

Following results to "error XS1031: Type expected", when no VO compatibility compiler options are enabled (including /vo15), using the VO dialect:

// VO dialect
CLASS TestClass
	METHOD TestClipper() CLIPPER
	RETURN NIL
END CLASS

Furthermore, when using the Core dialect, the compiler does not report any errors for using the CLIPPER and NIL keywords:

// Core dialect
CLASS TestClass
	// no errors!
	METHOD TestClipper() AS OBJECT CLIPPER
	RETURN NIL
END CLASS

Metadata

Metadata

Labels

Type

Projects

Status

Needs testing

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions