Skip to content
Snippets Groups Projects
Commit 0eb693e9 authored by Régis Blanc's avatar Régis Blanc
Browse files

detect infinite loop

parent 959719aa
No related branches found
No related tags found
No related merge requests found
object InfiniteLoop {
def infinite(): Int = {
var i = 0
var sum = 0
while (i < 10) {
sum = sum + i
}
sum
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment