Skip to content

Invalid arguments for untyped calls with params #1746

@hpetriffer

Description

@hpetriffer

In x# 2.24.0.1 a call which uses params results to invalid parameters. It seems that only the first param is used and other parameters are added with nil.

public class TestClass
	public method TestMethod(args params usual[]) as void
		Console.WriteLine("TestMethod called with {0} arguments.", args.Length)
		return
end class



function Start() as void strict
	var test := TestClass{}
	var testUntyped := (usual)test

	test.TestMethod(1, 2, 3)
	testUntyped.TestMethod(1, 2, 3)

	Console.ReadLine()
	return

XSharpTests.zip

Metadata

Metadata

Type

Projects

Status

To do

Status

Needs testing

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions