# # Interface of test library # # Copyright © 2026 Samuel Lidén Borell # # SPDX-License-Identifier: EUPL-1.2+ OR LGPL-2.1-or-later # versions 0.0.0 func somelib_toplevel # Test function since 0.0.0 bool b int x int y return int r class SomeClass # A test class # (this is an example of a documentation comment) since 0.0.0 # unversioned symbols # TODO add warning when depending on an unversioned symbol in another module int instvar_u_ctorinit int instvar_u_ctorinit_var! int instvar_u_const = 123 # TODO forbid this? int instvar_u_fixedinit_var! = 123 int instvar_v_ctorinit since 0.0.0 int instvar_v_ctorinit_var! since 0.0.0 int instvar_v_const since 0.0.0 = 123 # TODO forbid this? int instvar_v_fixedinit_var! since 0.0.0 = 123 # XXX Change to SomeClass.voidfunc ? # but still require class definitions to be contiguous? func voidfunc since 0.0.0 func param_i since 0.0.0 int x