Skip to content

[X# 3] Misleading error message calling VODBRecordInfo #1811

@hpetriffer

Description

@hpetriffer

For the following code

function Start() as void strict
    local u := #Test as usual

    VODBRecordInfo(1, 0, @u)

	Console.ReadLine()
	return

I get the following errors:

Argument 2: cannot convert from 'int' to 'usual'
A REF or OUT value must be an assignable variable
Parameter 2 needs a(n) 'RefReadOnly' modifier. This modifier was automatically added.

It seems that the parameter 2 is a problem, but the real problem is the '@' for the third parameter

XSharpTests.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    To do

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions