mirror of
https://github.com/twiglet/cs2j.git
synced 2025-01-18 13:15:17 +01:00
If T is a generic variable then we can't create an array of T (type erasure)
This commit is contained in:
parent
e7471051d8
commit
922c3baa0e
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
|
|
||||||
This file is
|
This file is
|
||||||
@ -122,7 +122,7 @@
|
|||||||
<Return>System.Void</Return>
|
<Return>System.Void</Return>
|
||||||
</Method>
|
</Method>
|
||||||
<Method>
|
<Method>
|
||||||
<Java>${this:16}.toArray(new ${T}[${this}.size()])</Java>
|
<Java>((${T}[]) ${this:16}.toArray())</Java>
|
||||||
<Params>
|
<Params>
|
||||||
</Params>
|
</Params>
|
||||||
<Name>ToArray</Name>
|
<Name>ToArray</Name>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
|
|
||||||
This file is
|
This file is
|
||||||
@ -122,7 +122,7 @@
|
|||||||
<Return>System.Void</Return>
|
<Return>System.Void</Return>
|
||||||
</Method>
|
</Method>
|
||||||
<Method>
|
<Method>
|
||||||
<Java>${this:16}.toArray(new ${T}[${this}.size()])</Java>
|
<Java>((${T}[]) ${this:16}.toArray())</Java>
|
||||||
<Params>
|
<Params>
|
||||||
</Params>
|
</Params>
|
||||||
<Name>ToArray</Name>
|
<Name>ToArray</Name>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user