Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
Will this compile?
Akkiraju Ivaturi
12y
855
1
Reply
using
System;
class
Test
{
enum
Foo { Bar, Baz };
const
int
One = 1;
const
int
Une = 1;
static
void
Main()
{
Foo f = One-Une;
Console.WriteLine(f);
}
}
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Literally nothing wrong with the compiler here...
Type inference a-go-go