Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function

test

fn f() {
  sketch S() {} // error
} f();

test

fn f() {
  mod m {} // error
} f();

test

fn f() {
  fn f() {} // error
} f();

test

fn f() {
  init() {} // error
} f();

test

fn f() {
  use std;
} f();

test

fn f() {
  pub use std; // error
} f();

test

fn f() {
  return 1;
} f();

test

fn f() {
  if std::math::PI == 3 { __builtin::geo2d::Circle(radius=1); }
} f();

test

fn f() {
  const B = 1; // error
} f();

test

fn f() {
  a = 1;
} f();

test

fn f() {
  prop a = 1; // error
} f();

test

fn f() {
  1 + 2;
} f();

test

fn f() {
  __builtin::geo2d::Circle(radius=1mm);
} f();