---
source: compiler-core/src/parse/tests.rs
expression: "\ntype Wibble {\n  pub fn wobble() {}\n}\n"
---
----- SOURCE CODE

type Wibble {
  pub fn wobble() {}
}


----- ERROR
error: Syntax error
  ┌─ /src/parse/error.gleam:3:3
  │
3 │   pub fn wobble() {}
  │   ^^^ I was not expecting this

Found the keyword `pub`, expected one of: 
- `}`
- a record constructor

Hint: Gleam is not an object oriented programming language so
functions are declared separately from types.
