Idris2/tests/idris2/inlining001/Inlining.idr

26 lines
355 B
Idris

leaveAlone : String -> String
leaveAlone x = x ++ "!"
%inline
forceInline : Nat -> Nat
forceInline y = y + 10
%noinline
public export
forceNoInline : Nat
forceNoInline = 10
public export
heuristicPublicInline : Nat
heuristicPublicInline = 2
%inline
export
exportedForced : Nat
exportedForced = 33
export
exportedUnforced : Nat
exportedUnforced = 66