Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# C# Objects Encapsulation and Arrays Arrays

Andras Andras
Andras Andras
8,230 Points

Compiling double array

When I put space between double and brackets the software does not compile but when there is no space in between it works well.

CodeChallenge.cs
double[] lapTimes = new double[4];

1 Answer

Steven Parker
Steven Parker
231,198 Points

:point_right: The challenges are sometimes extra picky.

The problem was not with the compiler, but with the challenge's syntax checking. This is one of those cases where your solution would have been fine in a normal compiler, but the challenge was imposing extra syntax restrictions.

If you feel it's warranted, you could report this as a bug using the Support page.