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
[interp] Don't check for exception in native wrappers (#14184)
[mono-project.git]
/
mcs
/
errors
/
cs0029-33.cs
blob
6e2149a1c30a5e56555c38066e7d35d300b3a95d
1
// CS0029: Cannot implicitly convert type `char' to `char*'
2
// Line: 15
3
// Compiler options: -unsafe
4
5
unsafe struct
MyStruct
6
{
7
public fixed char
Name
[
32
];
8
}
9
10
unsafe class
MainClass
11
{
12
public static void
Main
()
13
{
14
var
str
=
new
MyStruct
();
15
str
.
Name
=
default
(
char
);
16
}
17
}