Compiler behave differently in generic/non-generic code

Description

The following program illustrates the problem:

I think both explicit conversions should behave the same, even though one is extracted into a generic method. Probably, the direct conversion is the correct behavior, but the language spec is not clear to me.

Environment

None

Status

Assignee

Louis Mandel

Reporter

qznc

Labels

None

Components

Fix versions

Affects versions

Priority

Medium
Configure