mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
20 lines
511 B
HTML
20 lines
511 B
HTML
<html>
|
|
<body>
|
|
<p>Reports statements that are unreachable. This can occur if the statement is after an infinite loop,
|
|
<code>return</code>, <code>break</code>, or <code>continue</code> statement.</p>
|
|
<p><b>Example:</b>
|
|
<pre><code>
|
|
<b>void</b> foo (int n) {
|
|
if (n < 1) {
|
|
return
|
|
<b>print('This statement is unreachable')</b>
|
|
}
|
|
while (true){
|
|
print ('Hello, world!')
|
|
}
|
|
<b>print('This statement is unreachable too')</b>
|
|
}
|
|
</code></pre>
|
|
</body>
|
|
</html>
|