Skip to content

Invalid cast exception with assignment from usual (int) to Nullable<float> #1748

@hpetriffer

Description

@hpetriffer

The assignment from an usual of type int to 'float?' results to an InvalidCastException. If the usual is a float it works without problems.

	local x := 1 as usual
	local y := 1 as float?

	y := x

XSharpTests.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions