repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git]
/
mcs
/
errors
/
cs0030-17.cs
blob
b72b8bf71e528c3dfabcac0781e7d5683431f184
1
// CS0030: Cannot convert type `object' to `S'
2
// Line: 13
3
// Compiler options: -langversion:latest
4
5
ref struct
S
6
{
7
}
8
9
class
X
10
{
11
public static void
Foo
(
object
o
)
12
{
13
var
res
= (
S
)
o
;
14
}
15
}