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 trialJoshua C
51,696 PointsThere was a temporary issue running this code challenge (Task 3 of 3)
I've emailed Help Desk (help@teamtreehouse.com) about this issue and they are getting through this task fine. My response from them was that my code is incorrect; however, when I try it, I don't get any errors in the preview. I get a popup saying:
"Oh no!
There was a temporary issue running this code challenge. We've been notified and will investigate the problem.
If you continue experiencing problems, please contact support at help@teamtreehouse.com."
What's wrong with my code?
Please help (Carling Kirk?)
Thank you.
using System;
namespace Treehouse.CodeChallenges
{
public class Program
{
public Func<int, int> Square = delegate (int number)
{
return number * number;
};
Action<int, Func<int, int>> DisplayResult = delegate (int result, Func<int, int> operation)
{
Console.WriteLine(operation(result));
};
}
}
1 Answer
Steven Parker
231,198 PointsYou're going to love this....
You left off the "public" before "Action".
You might write the support guys one more time and point this out. I tried this several times, and every time I left off the "public", the challenge crashes!
Joshua C
51,696 PointsJoshua C
51,696 PointsThanks man. I was getting so frustrated! :-) I'll contact support and let them know.