Idris2/tests/idris2/misc/inlining001/Inlining.idr
2023-09-07 14:57:22 +01:00

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